package org.rainbowinverted.charging.device.connect.ykc.server.attribute;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 设备信息
 * @author hehuaiping
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeviceInfo implements Serializable {
    /**
     * 设备编号
     */
    private Long deviceNo;
    /**
     * sim卡号
     */
    private String simNo;
    /**
     * 紧急状态
     */
    private Boolean emergency;

    public static DeviceInfo of(Long deviceNo, String simNo, Boolean emergency) {
        return new DeviceInfo(deviceNo, simNo, emergency);
    }

}
